package controller

import (
    "net/http"

    "github.com/gin-gonic/gin"
)

// HealthController handles health-related endpoints
type HealthController struct{}

// NewHealthController creates a new instance of HealthController
func NewHealthController() *HealthController {
    return &HealthController{}
}

// RegisterRoutes registers all health-related routes
func (h *HealthController) RegisterRoutes(group *gin.RouterGroup) {
    group.GET("", h.Check)
}

// Check handles the health check endpoint
func (h *HealthController) Check(c *gin.Context) {
    c.JSON(http.StatusOK, gin.H{
        "status": "ok",
    })
}